import request from '@/utils/request'

export function create(data) {
  return request({
    url: '/api/v1/DeviceCalibrationPlan/Create',
    method: 'post',
    data
  })
}

export function deleteRecord(data) {
  return request({
    url: '/api/v1/DeviceCalibrationPlan/Delete',
    method: 'delete',
    data
  })
}

export function ScrapDeviceCalibrationPlan(data) {
  return request({
    url: '/api/v1/DeviceCalibrationPlan/ScrapDeviceCalibrationPlan',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/api/v1/DeviceCalibrationPlan/Update',
    method: 'post',
    data
  })
}
export function get(data) {
  return request({
    url: '/api/v1/DeviceCalibrationPlan/Get',
    method: 'get',
    params: data
  })
}

export function getList(data, pagination) {
  if (pagination) {
    data["pageIndex"] = pagination.pageIndex;
    data["pageSize"] = pagination.pageSize;
  }
  return request({
    url: '/api/v1/DeviceCalibrationPlan/GetList',
    method: 'get',
    params: data
  })
}

export function verifyPass(data) {
  return request({
    url: '/api/v1/DeviceCalibrationPlan/VerifyPass',
    method: 'post',
    data
  })
}
export function verifyReject(data) {
  return request({
    url: '/api/v1/DeviceCalibrationPlan/VerifyReject',
    method: 'post',
    data
  })
}

